package com.asia.order.utils;

public enum SignAlgorithmEnum {

    MD2,MD5,SHA1,SHA256,SHA384,SHA512,RSA,RSA2;

    public static SignAlgorithmEnum getTypeByName(String signType){
        SignAlgorithmEnum[] var2 = values();
        int var3 = var2.length;
        for(int var4 = 0; var4 < var3; ++var4) {
            SignAlgorithmEnum type = var2[var4];
            if(org.apache.commons.lang.StringUtils.endsWithIgnoreCase(type.name(),signType)){
                return type;
            }
        }
        throw new IllegalArgumentException("No matching constant for [" + signType + "]");
    }

}
